package com.tanjie.blackbean.iot.simulator;

import com.tanjie.blackbean.schedule.support.BlackbeanSchedule;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * @Author tanjie
 * @Date 2022/6/23 下午4:08 周四
 **/
@Slf4j
@Component
public class StartupRunner implements ApplicationRunner {

    @Resource
    BlackbeanSchedule blackbeanSchedule;

    @Override
    public void run(ApplicationArguments args) {
        blackbeanSchedule.runOnStart();
    }

}
